package ${packageName}.service;

import ${packageName}.entity.${tableInfo.className};
import com.baomidou.mybatisplus.extension.service.IService;
import com.sssre.lttcloud.common.result.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * ${tableInfo.tableComment}服务接口
 * 
 * @author ${tableInfo.author}
 * @date ${.now?string("yyyy-MM-dd")}
 */
public interface ${tableInfo.className}Service extends IService<${tableInfo.className}> {
    
    /**
     * 保存${tableInfo.tableComment}
     */
    Result<${tableInfo.className}> save${tableInfo.className}(${tableInfo.className} ${tableInfo.className?uncap_first});
    
    /**
     * 根据ID查询${tableInfo.tableComment}
     */
    Result<${tableInfo.className}> get${tableInfo.className}ById(Long id);
    
    /**
     * 查询所有${tableInfo.tableComment}
     */
    Result<List<${tableInfo.className}>> getAll${tableInfo.className}s();
    
    /**
     * 分页查询${tableInfo.tableComment}
     */
    Result<IPage<${tableInfo.className}>> get${tableInfo.className}Page(Page<${tableInfo.className}> page);
    
    /**
     * 根据ID删除${tableInfo.tableComment}
     */
    Result<String> delete${tableInfo.className}ById(Long id);
    
    /**
     * 批量删除${tableInfo.tableComment}
     */
    Result<String> delete${tableInfo.className}Batch(List<Long> ids);
} 